const http = uni.$u.http

// 查询
export const getNftGoodsList = (data) => {
	return http.post('', {
		serviceName: 'NftGoodsService',
		methodName: 'getPageList',
		bizParams: {
			...data
		},
		pagination: {
			pageNum: 1,
			pageSize: 30
		}
	})
}

// 查询NFT商品详情
export const getNftGoodsDetail = (data) => {
	return http.post('', {
		serviceName: 'NftGoodsService',
		methodName: 'getGoodsDetail',
		bizParams: {
			...data
		}
	})
}

// 领取
export const obtainNft = (params) => {
    return http.post('', {
      serviceName: 'NftGoodsService',
      methodName: 'obtainNft',
      bizParams: {
        ...params,
      },
    });
  };

  // 检查领取口令
export const obtainNftPasswordCheck = (params) => {
  return http.post('', {
    method: 'POST',
    serviceName: 'NftGoodsService',
    methodName: 'obtainNftPasswordCheck',
    bizParams: {
      ...params,
    },
  });
};